package com.weiyuwqj.server.service.account.service.impl;

import com.github.pagehelper.PageHelper;
import com.weiyuwqj.api.model.vo.ManageAmountDetailsVO;
import com.weiyuwqj.api.model.vo.StatAmountDetailsVO;
import com.weiyuwqj.server.service.base.BaseServiceImpl;
import com.weiyuwqj.server.mapper.BusAccountLogMapper;
import com.weiyuwqj.api.service.BusAccountLogService;
import com.weiyuwqj.api.common.PageList;
import com.weiyuwqj.api.common.Paginator;
import com.weiyuwqj.api.model.BusAccountLog;
import com.weiyuwqj.api.model.vo.BusAccountLogVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service("accountLogService")
public class BusAccountLogServiceImpl extends
        BaseServiceImpl<BusAccountLog> implements
        BusAccountLogService {

    @Autowired
    private BusAccountLogMapper busAccountLogMapper;

    @Override
    public PageList getList(Paginator p, Map<String, Object> param){
        PageHelper.startPage(p.getPageNum(),p.getPageSize());
        List<BusAccountLogVo> list = busAccountLogMapper.getList(param);
        return new PageList(list);
    }

    //后台不分页列表
    @Override
    public List<BusAccountLogVo> getList(Map<String, Object> param) {
        return busAccountLogMapper.getList(param);
    }

    @Override
    public List<BusAccountLogVo> excelList(Map<String, Object> param) {

        return busAccountLogMapper.getList(param);
    }


}
